package stanford.com.balldating;

import org.json.JSONException;
import org.json.JSONObject;

import cn.bmob.v3.BmobObject;

/**
 * Created by lenovo on 2017/2/22.
 */

public class User extends BmobObject {

    private String sex;
    private String password;
    private String name;

    public User(){}
    public User(JSONObject object){
        try{
            name=object.getString("username");
            password=object.getString("password");
        }catch (JSONException e){e.printStackTrace();}
    }

    public void setname(String name)
    {
        this.name=name;
    }
    public void setsex(String sex)
    {
        this.sex=sex;
    }
    public void setPassword(String password)
    {
        this.password=password;
    }
    public String getPassword()
    {
       return password;
    }
    public String getname()
    {
        return name;
    }
}